#ifndef __REFREE_SEND
#define __REFREE_SEND

#include "CRC_DJI.h"

//帧头
typedef  struct  __packed
{
    uint8_t   SOF;				//0xA5
    uint16_t  DataLenth;	//数据位长度
    uint8_t   Seq;				//包序号
    uint8_t   CRC8;				//crc8位校验
}FrameHeader_t;

//相关变量的结构体
typedef struct __packed
{
    float Pitch;
    float Roll;
    float Yaw;
    float X_length;
    float Y_length;
    float Z_length;
    uint8_t status;
    uint8_t CUP;
} Aix6_t;

typedef union
{
    struct __packed
    {
        FrameHeader_t FrameHeader;
        uint16_t CmdId;//命令码
        Aix6_t Aix6;
        uint16_t CRC16;
    }channal;
    uint8_t Data[35];
}Data_Transmit_t;

void Data_send(void);

#endif
